/**
 * 
 */
package ru.olympus.antonyhands.ao.shared.util;

/**
 * @author AntonyHands
 * @since 14.02.2012
 */
public class StringUtilities
{
    public static boolean isEmpty(String str)
    {
        if (str == null)
            return true;
        return str.isEmpty();
    }

    public static String longToString(Long number)
    {
        if (number == null)
            return "";
        return number.toString();
    }

    public static Long stringToLong(String string)
    {
        if (isEmpty(string))
            return null;
        return Long.valueOf(string);
    }
}
